export const num = (state=1, action)=> {
    switch (action.type) {
        case 'ADD':
            return state + 1
        case 'REDUCE':
            return state - 1
        default:
            return state   
    }
}